import { useState,useContext } from 'preact/hooks'
import {route} from 'preact-router';
export function Login() {
  let [name,setName] = useState('登陆界面');
  const onLogin=()=>{
    route('/about',true);
  }
  return (
    <>
        <h5>{name}</h5>
        <button onClick={()=>onLogin()}>登陆</button>
    </>
  )
}
